package demo.dto;

import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class RequestAllocateDutyDto {
    @NotNull(message = "用户 id 不能为空")
    private Long uid;

    @NotNull(message = "工号不能为空")
    private Long workId;

    @NotNull(message = "公司 id 不能为空")
    private Long companyId;

    @NotNull(message = "部门 id 不能为空")
    private Long departmentId;

    @NotNull(message = "职位不能为空")
    private String position;

    private String invitingCode;
}
